package cn.endowment.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;

import cn.endowment.clientserviceapi.IClientUserService;


/**
 * 用户管理Controller
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/api/v1")
public class AdminUserController {
	/**
	 * 用户管理接口
	 */
	@Reference(url="127.0.0.1:8089")
	private IClientUserService ius;
	
	/**
	 * 添加管理员 
	 * @return 返回视图
	 */
	@RequestMapping("/manager/add")
	public String getManager(){
		System.out.println("啦啦啦啦");
		Map<String, String> map = new HashMap<String,String>();
		map.put("name", "b");
		map.put("sex", "sex");
 		ius.addUser(map);
 		
 		return "oo";
	}
}
